package com.weigee.ktv.model.interfaces

import com.weigee.ktv.model.entities.ShoppingGoodsEntity

/**
 * Created by linde on 2017/5/29.
 *<p/>
 */
interface IShoppingCart {
    // 根据条件查找购物车里的商品数量
    fun getShoppingCartNum(shopId: Int?, categoryId: Int?, shoppingGoodsId: Int?): Int

    // 加入购物车
    fun addToCart(shopId: Int?, entity: ShoppingGoodsEntity?)

    // 移出购物车
    fun removeFromCart(shopId: Int?, categoryId: Int?, shoppingGoodsId: Int?)
}